package io.github.rascaler.dcenter.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

@Validated
@Configuration
@ConfigurationProperties(prefix = "cambrian-component-swagger")
@Data
public class CambrianSwaggerProperties {
    // 文档标题
    @NotBlank
    private String title;

    // 接口所在的包
    @NotBlank
    private String apiPackages;
}
